   
<%@ taglib prefix="c" uri="/struts-tags"%>

<html>
    <head>
     <script type="text/javascript" src="scripts.js"></script>
     <link href="<c:url value="/css/EstiloCruzeiro.css"/>" rel="stylesheet" type="text/css" />
     <title>Formulario de Cliente</title>
    </head>
 <body>
  <div id="paginaprinci">
   <div id="paginaprincipalDivSuperior">
    <img src="imagens/logo.jpg" border="0" >
   </div>
  
  <div id="paginaprincipalDivEsquerda">
   <table border="0" align="center">
     <tr> <td></td></tr>
     <tr> <td></td></tr>
     <tr> <td></td></tr>
     <tr> <td></td></tr>
     <tr> <td></td></tr>
     <tr> <td></td></tr>
     <tr> <td><a href="CadastraCliente.do?cmd=formCliente">Cliente  </a></td></tr>
     <tr> <td><a href="ManutençãoFornecedor.do?cmd=formFornecedor">Fornecedor</a></td></tr>
     <tr> <td><a href="FormCadastraProduto.do?cmd=formProduto"> Produto</a></td></tr>
     <tr> <td></td></tr>
     <tr> <td></td></tr>
     <tr> <td></td></tr>
     <tr> <td></td></tr>
     <tr> <td></td></tr>
     <tr> <td></td></tr>
   </table>
  </div>
         
  <div id="paginaprincipalDivDireita">
    <div id="botao1">
      <div id="style1">
        <div id="barratopo">   
          <font color="blue" size="4">Manuten&ccedil&atildeo de Cliente</font>
           </div>
            <ul>
            	<li><a href="CadastraCliente.do?cmd=formCliente">Cadastrar </a></li>
                <li><a href="ExcluirCliente.do?cmd=excluirCli">Excluir</a></li>
                <li><a href="Atualizar.do?cmd=atualizaCliente">Atualizar</a></li>
                <li> <a href="Consultat.do?cmd=consulta">Consultar </a></li>
           </ul>
       </div>
       <br>
       <fieldset>
        <c:form id="frmstylizer" method="post" action="atualizar.do" >
         <p><font size="5">Cadastrar Cliente</font>
           <input type="hidden" name="cmd"  value="cliente" />
           <input type="hidden" name="action"  value="salvar" />
         
          <c:textfield name="cpf" onkeypress="PermiteNumeros()" onblur="ValidarCPF(formcliente.cpf)" onkeypress="mascara(this,cpf2)"  label="CPF *" size="14" maxlength="14"/>
           <c:textfield name="nome" label="Nome"  size="50" maxlength="50"/>
           <c:textfield name="email" label="E-mail" size="50" maxlength="50"/>
           <c:textfield name="dataNascimento" onkeypress="PermiteNumeros()" onkeypress="return txtBoxFormat(this, '99/99/9999', event);" label="Nascimento"/>
           <c:textfield name="endereco" size="50" maxlength="50" label=" Endere&ccedilo "/>
           <c:textfield name="cidade"  label="Cidade "/>
           <c:textfield name="bairro" label=" Bairro "/>
           <c:textfield name="telefone" onkeypress="PermiteNumeros()" onkeypress="return txtBoxFormat(this, '(99)9999-9999/(99)9999-9999', event);" maxlength="28"size="28" label="Telefone*"/>
         
        <center> <c:submit name="atualizarButton" value="Cadastrar" /><font size="4" color="red">${OkMsg} </font> </center>
       </c:form>

     </fieldset>
      <br><br>
        <h5> Campo Obrigat&oacuterio (&#42;)</h5>
     </div>
    </div>
    <br><br>
  </div>
 </body>
</html>
